// import GGEditor, { Flow } from 'gg-editor';
import { dynamic } from 'umi';

const AxGGEditor: any = dynamic({
    loader: async function () {
        // 这里的注释 webpackChunkName 可以指导 webpack 将该组件 HugeA 以这个名字单独拆出去
        const { default: AxGGEditor } = await import(/* webpackChunkName: "external_gg_editor" */ 'gg-editor');

        return AxGGEditor;
    },
});

const AxFlow: any = dynamic({
    loader: async function () {
        // 这里的注释 webpackChunkName 可以指导 webpack 将该组件 HugeA 以这个名字单独拆出去
        const { Flow: AxFlow } = await import(/* webpackChunkName: "external_gg_editor" */ 'gg-editor');

        return AxFlow;
    },
});

export {
    AxGGEditor,
    AxFlow,
}


